package com.zkingsoft.bean;

import java.math.BigDecimal;
import java.util.Date;

import com.matrix.core.anotations.Extend;
import com.zkingsoft.common.bean.EntityDTOExt;

/**
 * @description (用户表)
 * @author 何明
 * @date 2018-05-23 09:24
 */
public class BizUser extends EntityDTOExt {
	@Extend
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private String userId;

	/**
	 * 真实姓名
	 */
	private String userName;

	/**
	 * 密码
	 */
	private String userPassword;

	/**
	 * 用户昵称
	 */
	private String nickName;

	/**
	 * 头像
	 */
	private String avatarUrl;

	/**
	 * 微信openid用户唯一标识
	 */
	private String openId;

	/**
	 * 用户在开放平台的唯一标识符
	 */
	private String unionId;

	/**
	 * 性别，值为1时是男性，值为2时是女性，值为0时是未知
	 */
	private String gender;

	/**
	 * 手机号码
	 */
	private String phoneNumber;

	/**
	 * 用户所在区
	 */
	private String area;

	/**
	 * 用户所在城市
	 */
	private String city;

	/**
	 * 用户所在省份
	 */
	private String province;

	/**
	 * 用户所在国家
	 */
	private String country;

	/**
	 * 会话密钥
	 */
	private String sessionKey;

	/**
	 * 最后登录时间
	 */
	private Date lastLoginTime;

	/**
	 * 是否订阅
	 */
	private String subscribe;

	/**
	 * 用户状态
	 */
	private Integer userStatus;

	/**
	 * VIP等级
	 */
	private Integer userVip;

	/**
	 * 到期时间
	 */
	private Date userExpiryTime;

	/**
	 * 代理等级
	 */
	private Integer userProxy;

	/**
	 * 认证信息
	 */
	private String userAuthentication;

	/**
	 * 商家注册时间
	 */
	private Date userAutTime;

	/**
	 * 所属行业
	 */
	private String userIndustry;

	/**
	 * 详细地址
	 */
	private String userAddress;

	/**
	 * 用户是否授权1是 2不是
	 */
	private int userIsAuthorize;

	/**
	 * 用户临时名称
	 */
	private String userTempName;

	/**
	 * 用户临时头像
	 */
	private String userTempAvatarUrl;

	/**
	 * 用户类型 1 普通用户 2 商家 3代理
	 */
	private Integer userType;

	/**
	 * 用户所属行业
	 */
	private String userShopIndustry;

	/**
	 * 商家主图
	 */
	private String userShopMainImg;
	/**
	 * 商家图片介绍
	 */
	private String userShopImgs;
	/**
	 * 商家介绍
	 */
	private String userShopDecription;
	/**
	 * 用户品牌名称
	 */
	private String userShopName;

	/**
	 * 用户余额
	 */
	private BigDecimal userMoney;

	/**
	 * 用户二维码code
	 */
	private String qrcode;

	/**
	 * 子账号信息
	 */
	@Extend
	private BizStaff staff;

	/**
	 * 商家id
	 */
	@Extend
	private BizBusiness business;

	/**
	 * 在途资金
	 */
	@Extend
	private BigDecimal transitMoney;

	/**
	 * 提现金额
	 */
	@Extend
	private BigDecimal cashOutMoney;
	
	/**
	 * 用户角色
	 */
	@Extend
	private int role;
	

	

	public BizStaff getStaff() {
		return staff;
	}

	public void setStaff(BizStaff staff) {
		this.staff = staff;
	}
 

	public BigDecimal getCashOutMoney() {
		return cashOutMoney;
	}

	public void setCashOutMoney(BigDecimal cashOutMoney) {
		this.cashOutMoney = cashOutMoney;
	}

	public BigDecimal getUserMoney() {
		if (userMoney == null) {
			return userMoney;
		}
		return userMoney.setScale(2, BigDecimal.ROUND_HALF_UP);
	}

	public void setUserMoney(BigDecimal userMoney) {
		this.userMoney = userMoney;
	}

	public BigDecimal getTransitMoney() {
		if (transitMoney == null) {
			return userMoney;
		}
		return transitMoney.setScale(2, BigDecimal.ROUND_HALF_UP);
	}

	public void setTransitMoney(BigDecimal transitMoney) {
		this.transitMoney = transitMoney;
	}

	public String getUserShopName() {
		return userShopName;
	}

	public void setUserShopName(String userShopName) {
		this.userShopName = userShopName;
	}

	public String getUserShopIndustry() {
		return userShopIndustry;
	}

	public void setUserShopIndustry(String userShopIndustry) {
		this.userShopIndustry = userShopIndustry;
	}

	public String getUserShopMainImg() {
		return userShopMainImg;
	}

	public void setUserShopMainImg(String userShopMainImg) {
		this.userShopMainImg = userShopMainImg;
	}

	public String getUserShopDecription() {
		return userShopDecription;
	}

	public void setUserShopDecription(String userShopDecription) {
		this.userShopDecription = userShopDecription;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getUserId() {
		if (userId == null) {
			return "";
		}

		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		if (userName == null) {
			return "";
		}

		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		if (userPassword == null) {
			return "";
		}

		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getNickName() {
		if (nickName == null) {
			return "";
		}

		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getAvatarUrl() {
		if (avatarUrl == null) {
			return "";
		}

		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public String getOpenId() {
		if (openId == null) {
			return "";
		}

		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUnionId() {
		if (unionId == null) {
			return "";
		}

		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getGender() {
		if (gender == null) {
			return "";
		}

		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getPhoneNumber() {
		if (phoneNumber == null) {
			return "";
		}

		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getCity() {
		if (city == null) {
			return "";
		}

		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		if (province == null) {
			return "";
		}

		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		if (country == null) {
			return "";
		}

		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getSessionKey() {
		if (sessionKey == null) {
			return "";
		}

		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public Date getLastLoginTime() {

		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getSubscribe() {
		if (subscribe == null) {
			return "";
		}

		return subscribe;
	}

	public void setSubscribe(String subscribe) {
		this.subscribe = subscribe;
	}

	public Integer getUserStatus() {

		return userStatus;
	}

	public void setUserStatus(Integer userStatus) {
		this.userStatus = userStatus;
	}

	public Integer getUserVip() {

		return userVip;
	}

	public void setUserVip(Integer userVip) {
		this.userVip = userVip;
	}

	public Date getUserExpiryTime() {

		return userExpiryTime;
	}

	public void setUserExpiryTime(Date userExpiryTime) {
		this.userExpiryTime = userExpiryTime;
	}

	public Integer getUserProxy() {

		return userProxy;
	}

	public void setUserProxy(Integer userProxy) {
		this.userProxy = userProxy;
	}

	public String getUserAuthentication() {
		if (userAuthentication == null) {
			return "";
		}

		return userAuthentication;
	}

	public void setUserAuthentication(String userAuthentication) {
		this.userAuthentication = userAuthentication;
	}

	public Date getUserAutTime() {

		return userAutTime;
	}

	public void setUserAutTime(Date userAutTime) {
		this.userAutTime = userAutTime;
	}

	public String getUserIndustry() {
		if (userIndustry == null) {
			return "";
		}

		return userIndustry;
	}

	public void setUserIndustry(String userIndustry) {
		this.userIndustry = userIndustry;
	}

	public String getUserAddress() {
		if (userAddress == null) {
			return "";
		}

		return userAddress;
	}

	public int getUserIsAuthorize() {
		return userIsAuthorize;
	}

	public void setUserIsAuthorize(int uesrIsAuthorize) {
		this.userIsAuthorize = uesrIsAuthorize;
	}

	public String getUserTempName() {
		return userTempName;
	}

	public void setUserTempName(String userTempName) {
		this.userTempName = userTempName;
	}

	public String getUserTempAvatarUrl() {
		return userTempAvatarUrl;
	}

	public void setUserTempAvatarUrl(String userTempAvatarUrl) {
		this.userTempAvatarUrl = userTempAvatarUrl;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getUserShopImgs() {
		return userShopImgs;
	}

	public void setUserShopImgs(String userShopImgs) {
		this.userShopImgs = userShopImgs;
	}

	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

	public BizBusiness getBusiness() {
		return business;
	}

	public void setBusiness(BizBusiness business) {
		this.business = business;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}
	

}